package edu.sandau.b23015110.model;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Student {

    @Id
    public String id;
    public String name;
    public Integer age;
    public Student() {
    }

    public String getName(){
        return name;
    }
    public String getId(){
        return id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setName(String id, String name){
        this.name=name;
        this.id=id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Student(String id, String name){
        setName(id,name);
    }
}
